package com.example.financeapp;

import YahooFinance.android.api.AndroidApi;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.widget.TextView;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		TextView pTextViewStockSymbol = (TextView) findViewById(R.id.TextViewStockSymbol);
		TextView pTextViewStockPrice = (TextView) findViewById(R.id.TextViewStockPrice);
		TextView pTextViewHours = (TextView) findViewById(R.id.TextViewHours);
		TextView pTextViewDate = (TextView) findViewById(R.id.TextViewDate);
		AndroidApi.startViewingStockPrices("EURUSD=X",this, pTextViewStockSymbol, pTextViewStockPrice, pTextViewHours,pTextViewDate);;
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

}
